package com.cml.common.dto.message;

import com.cml.common.constant.MessageType;
import com.cml.common.dto.entity.Message;

/**
 * 姓名：陈茂林
 * 时间：2023/11/6 11:54
 * 描述：
 */
public class ServiceSubscribeRequest extends Message {
    private String serviceName;

    public String getServiceName() {
        return serviceName;
    }

    public void setServiceName(String serviceName) {
        this.serviceName = serviceName;
    }

    @Override
    public Integer doGetMessageLength() {
        return Message.INTGER_TYPE_LENGTH+this.serviceName.length();
    }

    @Override
    public Integer doGetMessageType() {
        return MessageType.CLIENT_REQUEST_SERVICE_SUBSCRIBE_MESSAGE;
    }
}
